using QQZiFramework;
namespace QQZiFramework
{
    /// <summary>
    /// Float类型的字典，通常用来解释json配置，比如店铺的评分配置，0-100对应的星标
    /// </summary>
    public class FloatDictionary : System.Collections.Generic.Dictionary<float, float>
    {
        public float FindValue(float value)
        {
            foreach (System.Collections.Generic.KeyValuePair<float, float> kv in this)
            {
                if (kv.Key <= value)
                {
                    return kv.Value;
                }
            }
            return 0;
        }
    }
}